package com.etang.a2020c1010.tools;

import android.content.Context;
import android.widget.Toast;

public class DiyToast {

    private static Toast toast;

    public static void showToast(Context context, String s) {
        if (toast == null) {
            toast = Toast.makeText(context, s, Toast.LENGTH_LONG);
        } else {
            toast.setText(s);
        }
        toast.show();
    }
}
